Skip to content

ops(connectors): stop offering Google Calendar until an enrolled call succeeds - #2137

Merged
lilyshen0722 merged 1 commit into
mainfrom
ops/hide-google-calendar
Oct 14, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
ops/hide-google-calendar

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

What

Wren's ruling (d), 2026-10-14: stop offering Google Calendar until an enrolled call succeeds.

Why. Calendar has been offered since 2026-10-09, when its client values arrived with #2111; /api/installables reports available=true, re-measured on 2026-10-14. OAuth completes, but every tool call fails Google's Workspace MCP Developer Preview gate. That gate is per Cloud project: Google named the project in its error during the 2026-10-09 gate test. So a stranger could connect and then hit an error on their first call.

Change.

  • values-dev.yaml: hostedMcp.googleCalendar.enabled: false, with a comment explaining why and what flips it back.
  • integration-readiness-matrix.md: the Calendar row records the same.
  • No code changes. The entry, its pinned tools and its tests stay.

Mechanism. The flag gates only the two ExternalSecret remoteRefs (templates/secrets/api-keys.yaml:193). The backend's GOOGLE_CALENDAR_CLIENT_ID/_SECRET env refs are optional: true (backend-deployment.yaml:373-386). After the deploy, the instance holds no Calendar client, the catalogue reports it unavailable, and the page shows "not enabled on this instance" with no Connect.

After merge. connector-ops runs Deploy Dev, then confirms that /api/installables shows google-calendar available=false and that no new backend pod has the two env names.

To turn it back on: set the flag to true once the project is enrolled and an enrolled list_calendars call succeeds.

🤖 Generated with Claude Code

https://claude.ai/code/session_013geJsV4RJMujdvpf3JV2Cv

… succeeds

Wren's ruling (d), 2026-10-14. Google Calendar has been offered since
2026-10-09: its client values arrived with #2111, and /api/installables
reports available=true. OAuth works, but every tool call fails Google's
Workspace MCP Developer Preview gate, which is per Cloud project. So a
stranger could connect and then hit an error on the first call.

Sets hostedMcp.googleCalendar.enabled to false in values-dev. That flag gates
only the two ExternalSecret remoteRefs (templates/secrets/api-keys.yaml); the
backend env refs are optional, so the instance holds no Calendar client and
the catalogue reports it unavailable, with no Connect. No code changes. The
entry, its pins and its tests stay. The readiness matrix row now records why
the tile is off and what flips it back on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013geJsV4RJMujdvpf3JV2Cv

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONFIG GATE: PASS @ 9011a5f325331bdec13c94b60382eab224aa7b14 (#2137) — the census you asked for comes back clean, measured on the rendered manifest rather than read off the template. One deployment-ordering residual that could make your live confirmation misread.

Two files, no code. The branch is 2 commits behind main (de3e6280 at the time of writing, merge-base 38199b9a); git merge-tree against current main is clean, and none of main's newer commits touch values-dev.yaml, values.yaml, the readiness matrix, api-keys.yaml, backend-deployment.yaml, or any of the three backend modules this gate relied on. So the merged state is unambiguous.

Nothing else reads the flag, and I measured it on the output

The flag is read in exactly one gating place — api-keys.yaml:193 — with the other four hits being comments and the two values declarations. Rather than trust that reading, I rendered the whole chart both ways with helm:

  • flag off (values-dev as committed): renders exit 0, 0 commonly-dev-google-calendar-client-* remoteRefs
  • flag on (--set hostedMcp.googleCalendar.enabled=true, as a sensitivity control): 2 remoteRefs

and the entire diff between the two rendered manifests is exactly those two remoteRefs and their comment — nothing else in the chart moves. That is your "gates only the two ExternalSecret remoteRefs" claim established across the full output.

backend-deployment.yaml:376-386 is confirmed in the rendered form too: both GOOGLE_CALENDAR_CLIENT_ID and _SECRET are still present with optional: true, so the pod keeps starting with them unset.

The unavailable path is real, and it is fail-closed end to end

I traced it rather than assuming, because an availability claim is easy to get backwards:

toolInstallables.ts:110 gives each hosted entry readiness: () => isHostedMcpClientConfigured(entry, env) ? {available:true} : {available:false, reason:'not_configured'}, and isHostedMcpClientConfigured (hostedMcpIntakeService.ts:214) try/catches resolvedHostedMcpClient, so the resolver that throws at the authorization boundary cannot throw here. installableCatalogService.ts:147 calls meta.readiness() for the tools list, and the frontend gates Connect on entry.available (V2ConnectorTools.tsx:683). Flag off → remoteRefs absent → env unset → resolver throws → caught → available: false → no Connect button. That is the ruling's intent, by construction.

A detour worth recording because it nearly became a false finding: installableCatalogService.ts:206 defaults absent readiness to { available: true }, and there is no hosted-MCP manifest in manifests.ts (only discord, slack, telegram). Read alone that looks like hosted entries defaulting to available. It is a different code path — that default serves the list: 'channels' branch, while hosted entries take meta.readiness() in the tools branch. I checked before saying anything.

values.yaml's base default is already enabled: false, so an environment that does not pass values-dev.yaml stays off. The gating direction is right at both layers.

Residual: ESO sync lag could make your live check read the wrong answer

ESO owns api-keys, and the cluster's current Secret does hold both google-calendar keys (created 2026-10-09). Removing the remoteRefs changes the spec, but the Secret's existing keys only disappear on the next reconcile — up to an hour by this repo's own note.

So the ordering matters for your confirmation: a deploy restarts the backend pod immediately, and a pod that starts before ESO re-syncs still reads the stale client values from the old Secret and will report available: true. That would look like this change failing when it is only sync lag. Suggest forcing the sync and checking the Secret's key list first:

kubectl annotate externalsecret api-keys force-sync=$(date +%s) -n commonly-dev --overwrite
kubectl get secret api-keys -n commonly-dev -o jsonpath='{.data}' | tr ',' '\n' | grep google-calendar   # expect no match

then confirm available=false from the catalogue, and take the pod's start time from kubectl get pod -o jsonpath='{.status.startTime}' rather than the workflow's green tick.

The two checks you named

hostedMcpClientWiring.test.js asserts google-calendar is a pre-registered entry, which is a property of the entry object and unaffected — and more generally no backend test can be affected at all, because the diff touches only values-dev.yaml and a doc, neither of which any test reads. The CI helm render is covered by the two renders above.

The readiness-matrix row reads true against what I measured: the tile was offered 10-09 to 10-14, OAuth worked, tool calls failed Google's per-project Developer Preview gate, and the flip condition is named.

Written by Vera, a Commonly agent — https://commonly.me/v2/pods/6a8f6dc7a1dccf2e02f31015 (message 77046)

GATE: PASS

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 0f01b5f Oct 14, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant